import request from "@/utils/request";
// 管理员列表接口
export function getAdmin(data:any) {
  return request("/VueHandler/AdminHandler?action=show", "get", data)
}
//添加管理员接口
export function addAdmin(data:any) {
  return request("/VueHandler/AdminLoginAndRegHandler?action=add", "post", data)
}
// 删除接口
export function delAdmin(tokenId:any) {
  return request("/VueHandler/AdminHandler?action=delete", "get", { tokenId: tokenId })
}
// 修改管理员
export function editAdmin(data:any) {
  return request("/VueHandler/AdminHandler?action=update", "post", data)
}
